package edu.lsnu.equipment_management_system.pojo.po.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author mzy
 * @Description 设备报损报废PO：JBXX_BSBF
 * @date 2018/11/17
 */
@Data
public class EquipmentDamageTablePo {
    public void setEquipmentNo(String equipmentNo) {
        this.equipmentNo = equipmentNo.trim();
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo.trim();
    }

    /** 设备编号：SBBH：从界面来 */
    private String equipmentNo;
    /** 报损报废：BSBF：从界面来 */
    private String damageOr;
    /** 经手人：(当前用户) ZGH */
    private String userNo;
    /** 损废日期：SFRQ：从界面来 */
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
    private Date damageDate = new Date();
    /** 损废原因：SFYY：从界面来 */
    private String damageReason;

    /** 已使用年限：YSYNX：从界面来 */
    private Integer useYear;
    /** 最低报废年限：ZDBFNX：从界面来 */
    private Integer depreciationPeriod;
    /** 备注：BZ：默认和damageReason相同 */
    // private String remark;
}
